/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.mocamorena.persistence.dao;

import br.com.mocamorena.exception.PersistenciaException;
import br.com.mocamorena.model.Cliente;
import br.com.mocamorena.view.DisplayFilter;
import java.util.List;

/**
 *
 * @author Diego
 */
public interface ClienteDao {
    
    public boolean inserir(Cliente cliente) throws PersistenciaException;
    public boolean atualizar(Cliente cliente) throws PersistenciaException;
    public boolean excluir(Cliente cliente) throws PersistenciaException;
    public List<Cliente> listarTodos(int... limits) throws PersistenciaException;
    public List<Cliente> listarPeloNome(String nome, DisplayFilter displayFilter) throws PersistenciaException;
    public List<Cliente> listarPeloCpfECnpj(String cadastroPessoa, DisplayFilter displayFilter) throws PersistenciaException;
    public List<Cliente> listarPeloCep(String cep, DisplayFilter displayFilter) throws PersistenciaException;
    public void getTelefones(Cliente cliente) throws PersistenciaException;
    
}
